package web;

import org.apache.wicket.Session;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.PropertyModel;
import org.apache.wicket.request.mapper.parameter.PageParameters;

public class Index extends WebPage{
	private static final long serialVersionUID = 1L;

	public Index(PageParameters parameteters) {
		SpringWicketWebSession sesion = (SpringWicketWebSession) Session.get();
		add(new Label("label", new PropertyModel<String>(sesion, "user")));
	}
}
